from . import FormatterFactory


def generator(knowledgeDict: dict) -> str:
    information = []
    for type, knowledgeEntity in knowledgeDict.items():
        entity = FormatterFactory.create(type).format(knowledgeEntity)
        information.append(entity)
    return "\n\n".join(information)
